Release 10.1A: OpenEdge Getting Started:
Progress OpenEdge Studio
Dynamic Query module
To add flexibility to your applications, the Progress 4GL enables you to build dynamic queries. With the dynamic query structure, you do not have to anticipate and code every case for which an end user might want a query. At run time, end users can design their own queries to fit exactly the questions they need to answer.
![]()
To launch this module, choose the Dynamic Query button on the SportsPro main window. The Find Customer dialog box appears:
![]()
When you launch the Dynamic Query module, it accepts the handle of a SDO on the SportsPro main window to serve as the data source for the query. As you create a query using the buttons in the upper section of this window, the module records the contents of the For Each Customer Where editor as a variable. Choosing the Search button launches the module’s Search procedure. The Search procedure accepts the handle of the user input variable and uses it to replace the SDO’s
WHEREandSORTclauses.Table 2–3 describes the major objects used in the Dynamic Query module.
Note: The Dynamic Query module also runs when you choose the Find Customer button in the Customer section of the SportsPro Order Tracking System.
For more information on building dynamic queries, see the chapter on using dynamic queries in the OpenEdge Development: Progress 4GL Handbook .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |